package com.probox.common.entity.domain.product;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.probox.common.core.annotation.Excel;

/**
 * 商品单位对象 product_unit
 *
 *
 * @date 2021-05-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_unit")
public class ProductUnit implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    //默认主键自增
    @TableId(value = "UNIT_UID", type = IdType.AUTO)
    private Long unitUid;
    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    private String unitName;
    /**
     * 单位状态
     */
    @Excel(name = "单位状态")
    private String dataStatus;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long dataPriority;
    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createUid;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新人ID
     */
    @Excel(name = "更新人ID")
    private Long updateUid;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 平台ID
     */
    @Excel(name = "平台ID")
    private Long platformUid;

    @Excel(name = "创建人名称")
    private String createName;

    @Excel(name = "更新人名称")
    private String updateName;

    private Integer endCount;

    private Integer startCount;

    private BigDecimal discount;
    //论文分类ID
    private Long groupUid;
    //论文分类名称
    @TableField(exist = false)
    private String groupName;

}
